#include <stdio.h>
#include <math.h>
int main() {
   int n ;
    printf("Enter the number : ");
    scanf("%d",&n);
    for (int i = -(n/2); i <= n /2; ++i) {
       for (int k =0 ; k<= abs(i) ; ++k) {
           printf(" ");
       }
       for (int j = 0 ; j< n-abs(i)*2 ; ++j) {
           printf("*");
       }
       printf("\n");
    }
    return 0;
}